Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
添加了 devcontainer 配置,用 vscode 或者其他支持 devcontainer 的编辑器/IDE 打开,在弹出提示中选择在容器中打开,进入命令行后用
bin/dev
即可启动服务。不过目前有个问题,app 镜像需要设置
platform: linux/amd64
,这在 mac 或者 windows 环境下会有性能损失。这是因为 https://github.com/huacnlee/rucaptcha 这个 gem 缺少预编译平台:
另外 nokogiri 在 alpine 需要添加依赖
apk add gcompat
。看能不能给 rucaptcha 加上
aarch64-linux-musl
,然后我再更新 PR。